package com.ynr.voucher.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ynr.voucher.model.VoucherModel;

public interface IVoucherDao {

	public int addVoucher(@Param("voucher")VoucherModel voucher);

	public int addCompanyVoucher(@Param("companyId")long companyId, @Param("voucherId")long voucherId);

	public List<Map<String, Object>> getVoucherByCompanyIdAndBillDate(@Param("companyId")String companyId, @Param("billDate")String billDate);

	public Map<String, Integer> getLastVoucherNum(@Param("billDate")String billDate, @Param("type")String type);

	public Map<String, Object> getInvoiceOriginalData(@Param("invoiceId")long invoiceId);

	public Map<String, Object> getBankOriginalData(@Param("bsdId")long bsdId);
	
	public Map<String, Object> getSalaryOriginalData(@Param("sdId")long bsdId);

	public List<Map<String, Object>> getInvoiceItemOriginalData(@Param("invoiceId")long table_id);

	public List<Map<String, Object>> getVoucherByTableNameAndId(@Param("tableName")String tableName, @Param("id")long id);

	public int updateVoucherStatus(@Param("ids")List<String> ids);

	public void updateVoucherSubject(@Param("id")long id, @Param("subject")String subject);

}
